﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace MO
{
    public class FieldDefine
    {
        public string Code;
        public string Name;
        public string Description;
        public string EntityCode;
        public string Type;
        public int Length;
        public bool NotNull;
        public string Reference;
        public FieldDefine(DataRow row)
        {
            this.Code = row["FD_Code"].ToString();
            this.Name = row["FD_Name"].ToString();
            this.Description = row["FD_Description"] as string;
            this.EntityCode = row["ED_Code"].ToString();
            this.Type = row["FD_Type"].ToString();
            this.Length = Convert.ToInt32(row["FD_Length"]);
            this.NotNull = Convert.ToBoolean(row["FD_NotNull"]);
            this.Reference = row["FD_Reference"] as string;
        }
    }
}
